import '../request/hi_base_request.dart';
import 'hi_net_adaper.dart';

class MockAdapter extends HiNetAdapter {
  @override
  Future<HiNetResponse<T>> send<T>(HiBaseRequest request) async {
    return Future.delayed(const Duration(microseconds: 1000), () {
      return HiNetResponse(
          request: request,
          data: {"code": 0, "message": "success"} as T,
          statusCode: 403);
    });
  }
}
